package com.nengchuan.kbms.dfs.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * @author luo_zm
 * @DESCRIPTION 文件下载前段入参
 * @create 2020/4/13 9:20
 */
@Data
public class DownloadFileDTO {

    @NotNull(message = "文件id不能为空")
    @ApiModelProperty(value = "文件id", required = true, example = "1339257692094496")
    private Long id;

    @ApiModelProperty(value = "水印内容", example = "长沙能川信息")
    @Size(min = 0, max = 16, message = "水印内容长度是0-16个字符")
    private String waterText;

    @ApiModelProperty(value = "编辑密码", example = "666666")
    @Size(min = 6, max = 16, message = "编辑密码长度必须是6-16个字符")
    private String ownerPassWord;

    @ApiModelProperty(value = "访问密码", example = "111111")
    @Size(min = 6, max = 16, message = "访问密码长度必须是6-16个字符")
    private String visitPassWord;
}
